<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/25 jsp2.0
  Time: 16:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<script>


</script>
<body>
<c:forEach var="p" items="${list}">
  姓名： ${p.name}
  <br>
  生日：<fmt:formatDate value="${p.birthday}" pattern="yyyy-MM-dd"/>
  <br>
</c:forEach>

<form action="${pageContext.request.contextPath}/add.do" id="ad">
    用户名： <input type="text" name="name"> <br>
    年龄: <input type="text" name="age"> <br>
    生日： <input type="text" name="birthday"> <br>
    <input type="submit">
</form>
</body>
</html>
